package com.example.smartgreenhouse.service.impl;

import com.example.smartgreenhouse.entity.Warn;
import com.example.smartgreenhouse.mapper.WarnMapper;
import com.example.smartgreenhouse.service.WarnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WarnServiceImpl implements WarnService {
    @Autowired
    private WarnMapper warnMapper;

    @Override
    public boolean saveWarn(Warn warn) {
        return warnMapper.insert(warn) > 0;
    }
}
